
{extend name="public:common_edit"/}
{block name="css"}
<style>
    .form-control {
        max-width: 350px;
    }

    .tb-name {
        width: 238px;
    }
    .error{
        color: red;
        margin-top: 10px;
        display: none;
    }
    .select{
        margin-bottom: 10px;
    }
    .doctor{
        display: none;
    }
</style>
{/block}
{block name="main"}
<section class="content">
    <div class="container-fluid">
        <div class="pull-right">
            <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default"
               data-original-title="返回"><i class="fa fa-reply"></i></a>
            <a href="javascript:void(0);" class="btn btn-default"
               data-url="javascript:;"
               onclick="get_help(this)"><i class="fa fa-question-circle"></i> 帮助</a>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-list"></i> {$title}</h3>
            </div>
            <div class="panel-body">
                <!--表单数据-->
                <form action="" method="post" class="form-horizontal jEmoji"
                      id="category_form">

                    <!--通用信息-->
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab_tongyong">
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td>头像:</td>
                                    <td>{:uploadHtml('header_img',$data.header_img,'single_img')}</td>
                                </tr>
                                <tr>
                                    <td>用户昵称:</td>
                                    <td><input placeholder="用户昵称" class="form-control emojstext" name="nick_name" type="text" value="{$data.nick_name}"></td>
                                </tr>
                                <tr>
                                    <td>逛一逛签名:</td>
                                    <td><input placeholder="逛一逛签名" class="form-control emojstext" name="custom_sign" type="text" value="{$data.custom_sign}"></td>
                                </tr>
                                <tr>
                                    <td>手机号码:</td>
                                    <td><input placeholder="手机号码" class="form-control" name="phone" type="number" value="{$data.phone}"></td>
                                </tr>
                                <tr>
                                    <td>uuid:</td>
                                    <td><input placeholder="uuid" class="form-control" name="uuid" type="number" value="{$data.uuid}"></td>
                                </tr>

                                <tr>
                                    <td>会员类型:</td>
                                    <td>
                                        <select class="form-control" name="is_year">
                                            <option id="is_year1" value="1">年费会员</option>
                                            <option id="is_year0" value="0">普通会员</option>
                                        </select>
                                    </td>
                                </tr>

                                <tr>
                                    <td>会员到期时间:</td>
                                    <td>
                                        <input type="text"   name="member_time"  autocomplete="off" value="{:fmtMemberTime($extend.member_time)}" placeholder="选择结束时间"
                                               class="form-control timepicker">
                                    </td>
                                </tr>


                                <tr>
                                    <td>认证类型:</td>
                                    <td>
                                        <select class="form-control" name="is_real">
                                            <option id="is_real0" value="0">未通过(屏蔽)</option>
                                            <option id="is_real1" value="1">通过(无图标)</option>
                                            <option id="is_real2" value="2">通过(有图标)</option>
                                        </select>
                                    </td>
                                </tr>


                                <tr>
                                    <td>付费状态:</td>
                                    <td>
                                        <select class="form-control" name="is_pay">
                                            <option id="is_pay0" value="0">未付费</option>
                                            <option id="is_pay1" value="1">已付费</option>
                                        </select>
                                    </td>
                                </tr>

                                <tr>
                                    <td>性别:</td>
                                    <td>
                                        <select class="form-control" name="sex">
                                            <option id="sex1" value="1">男</option>
                                            <option id="sex2" value="2">女</option>
                                        </select>
                                    </td>
                                </tr>




                                {if $isTest}

                                <tr>
                                    <td>不可提现余额:</td>
                                    <td><input placeholder="不可提现余额" class="form-control" name="money" type="number" value="{$data.money}"></td>
                                </tr>
                                <tr>
                                    <td>可提现余额:</td>
                                    <td><input placeholder="可提现余额" class="form-control" name="cash" type="number" value="{$data.cash}"></td>
                                </tr>


                                {/if}
                                <tr>
                                    <td>金宝箱:</td>
                                    <td><input placeholder="0" class="form-control" name="box6" type="number" value="{$box.6.num}"></td>
                                </tr>

                                <tr>
                                    <td>银宝箱:</td>
                                    <td><input placeholder="0" class="form-control" name="box5" type="number" value="{$box.5.num}"></td>
                                </tr>
                                <tr>
                                    <td>铜宝箱:</td>
                                    <td><input placeholder="0" class="form-control" name="box4" type="number" value="{$box.4.num}"></td>
                                </tr>




                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="pull-right">
                        <label class="control-label col-sm-2"></label>
                        <input type="hidden" name="id" value="{$data.user_id}">
                        <input class="btn btn-primary submit" type="submit" value="保存">
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
{/block}
{block name="js"}
<script>
    $(function () {
        var is_agent = "{$data.is_agent}";
        $('#is_agent'+is_agent).attr('selected','selected');
        var is_pay = "{$data.is_pay}";
        $('#is_pay'+is_pay).attr('selected','selected');
        var sex = "{$data.sex}";
        $('#sex'+sex).attr('selected','selected');

        var is_real = "{$data.is_real}";
        $('#is_real'+is_real).attr('selected','selected');

        var is_year = "{$extend.is_year}";
        $('#is_year'+is_year).attr('selected','selected');
    })
</script>
{/block}
